package adapter;

import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.example.administrator.demo1.MainActivity;

/**
 * Created by Administrator on 2017/9/5.
 */

public class MyPagerAdapter extends PagerAdapter {


    @Override
    public int getCount() {
        return Integer.MAX_VALUE;
    }

    @Override
    public boolean isViewFromObject(View view, Object object) {
        return view == object;
    }

    @Override
    public Object instantiateItem(ViewGroup container, int position) {
//        ImageView iv = new ImageView(MainActivity.this);
//        iv.setImageResource(img[position]);
//        container.addView(iv);
//        return iv;
        return null;
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {
//            L.i(position + "");
//            container.removeViewAt(position);
    }
}
